Skip to content

chore: have mypy import stub libraries by default#11

Merged
averikitsch merged 4 commits intomainfrom
mypy
Jan 26, 2024
Merged

chore: have mypy import stub libraries by default#11
averikitsch merged 4 commits intomainfrom
mypy

Conversation

@jackwotherspoon
Copy link
Contributor

@jackwotherspoon jackwotherspoon commented Jan 26, 2024

Most libraries have stub packages for types. Adding --install-types will have mypy install them by default and not require them to be added to any deps.

Alternative is to add a poetry group for typing and add all required stubs to it: https://github.com/langchain-ai/langchain/blob/master/libs/core/pyproject.toml#L32

@jackwotherspoon jackwotherspoon self-assigned this Jan 26, 2024
@jackwotherspoon jackwotherspoon requested a review from a team January 26, 2024 16:40
@jackwotherspoon
Copy link
Contributor Author

Looks like integration test build fails when no tests are run, can ignore

@kurtisvg kurtisvg requested a review from averikitsch January 26, 2024 17:22
@averikitsch averikitsch merged commit 1c4f5a8 into main Jan 26, 2024
@averikitsch averikitsch deleted the mypy branch January 26, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants